package com.mifengs.mall.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * Created by lynn on 2018/1/15.
 */

public class MsgBean implements MultiItemEntity{

    public static final int MSG_TEXT =1;
    public static  final int MSG_IMG = 2;
    private int itemType;
    private RecordListBean recordListBean;
    public int getItemType() {
        return itemType;
    }

    public void setItemType(int itemType) {
        this.itemType = itemType;
    }

    public MsgBean(int itemType, RecordListBean recordListBean) {
        this.itemType = itemType;
        this.recordListBean = recordListBean;
    }

    public RecordListBean getRecordListBean() {
        return recordListBean;
    }

    public void setRecordListBean(RecordListBean recordListBean) {
        this.recordListBean = recordListBean;
    }

    /**
     * pageCount : 1
     * pageRow : 10
     * recordCount : 1
     * recordList : [{"type":"1","title":"系统公告","content":"关于xxxx","smallImgUrl":"xxx","imgUrl":"xxx","appPage":"xxx","redirectUrl":"xxx","pushTime":"2018-01-01 00:00:00"},{"type":"2","title":"xxx","content":"xxxx","smallImgUrl":"xxx","imgUrl":"xxx","appPage":"xxx","redirectUrl":"xxx","pushTime":"2018-01-01 10:00:00"}]
     */

    private String pageCount;
    private String pageRow;
    private String recordCount;
    private List<RecordListBean> recordList;

    public String getPageCount() {
        return pageCount;
    }

    public void setPageCount(String pageCount) {
        this.pageCount = pageCount;
    }

    public String getPageRow() {
        return pageRow;
    }

    public void setPageRow(String pageRow) {
        this.pageRow = pageRow;
    }

    public String getRecordCount() {
        return recordCount;
    }

    public void setRecordCount(String recordCount) {
        this.recordCount = recordCount;
    }

    public List<RecordListBean> getRecordList() {
        return recordList;
    }

    public void setRecordList(List<RecordListBean> recordList) {
        this.recordList = recordList;
    }

    public static class RecordListBean{
        /**
         * type : 1
         * title : 系统公告
         * content : 关于xxxx
         * smallImgUrl : xxx
         * imgUrl : xxx
         * appPage : xxx
         * redirectUrl : xxx
         * pushTime : 2018-01-01 00:00:00
         */

        private String type;
        private String title;
        private String content;
        private String smallImgUrl;
        private String imgUrl;
        private String appPage;
        private String redirectUrl;
        private String pushTime;

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getSmallImgUrl() {
            return smallImgUrl;
        }

        public void setSmallImgUrl(String smallImgUrl) {
            this.smallImgUrl = smallImgUrl;
        }

        public String getImgUrl() {
            return imgUrl;
        }

        public void setImgUrl(String imgUrl) {
            this.imgUrl = imgUrl;
        }

        public String getAppPage() {
            return appPage;
        }

        public void setAppPage(String appPage) {
            this.appPage = appPage;
        }

        public String getRedirectUrl() {
            return redirectUrl;
        }

        public void setRedirectUrl(String redirectUrl) {
            this.redirectUrl = redirectUrl;
        }

        public String getPushTime() {
            return pushTime;
        }

        public void setPushTime(String pushTime) {
            this.pushTime = pushTime;
        }

    }
}
